import { Client } from '@mctech/trapa-workflow-client'

export const startProcess = (code, key, orgId, obj = {}) => {
  return new Promise(function(resolve, reject) {
    Client.startProcess(code, key,
      obj,
      {
        success(bool) {
          resolve(bool)
        }
    }, orgId)
  })
}